import request from '@/utils/request'

// 查询客户类别列表
export function listWoodCustomerCategory(query) {
  return request({
    url: '/customer/customerCategory/list',
    method: 'get',
    params: query
  })
}

// 查询客户类别详细
export function getWoodCustomerCategory(basicsId) {
  return request({
    url: '/customer/customerCategory/' + basicsId,
    method: 'get'
  })
}

// 新增客户类别
export function addWoodCustomerCategory(data) {
  return request({
    url: '/customer/customerCategory',
    method: 'post',
    data: data
  })
}

// 修改客户类别
export function updateWoodCustomerCategory(data) {
  return request({
    url: '/customer/customerCategory',
    method: 'put',
    data: data
  })
}

// 删除客户类别
export function delWoodCustomerCategory(basicsId) {
  return request({
    url: '/customer/customerCategory/' + basicsId,
    method: 'delete'
  })
}

// 导出客户类别
export function exportWoodCustomerCategory(query) {
  return request({
    url: '/customer/customerCategory/export',
    method: 'get',
    params: query
  })
}
